
import React from 'react';
const initVal = {
  firstName: '王',
  lastName: '麻子',
  message: 'message',
};

//navBar组件的初始值
const navInitVal = {
  navTitle: 'navTitle',
};
const messageInitVal = {};
const themes = {
  light: {
    foreground: '#000000',
    background: '#eeeeee',
  },
  dark: {
    foreground: '#ffffff',
    background: '#222222',
  },
};

const ContainerContext = React.createContext(initVal);

const NavBarContext = React.createContext(navInitVal);

const MessageContext = React.createContext(messageInitVal);

const ThemeContext = React.createContext(
  themes.dark // 默认值
);
export default {
  NavBarContext,
  ContainerContext,
  MessageContext,
  ThemeContext,
};
